
#ifndef GEARRESTRAINTPANEL_H
#define GEARRESTRAINTPANEL_H

#include <BButton>
#include <BComboBox>
#include <BRealSpinBox>
#include <BCheckBox>
#include <BLineEdit>
#include <BGearRestraint>

using namespace BWE;

class GearRestraintPanel : public BWidget
{
	BOBJECT(GearRestraintPanel);
public:
	GearRestraintPanel(BWidget* parent = 0);
	~GearRestraintPanel();

protected:
	void slotAssetChanged(BObject* object, const BValue& value);

	void slotPositionAEditFinished(BObject* object, const BValue& value);
	void slotRotateAEditFinished(BObject* object, const BValue& value);
	void slotPositionBEditFinished(BObject* object, const BValue& value);
	void slotRotateBEditFinished(BObject* object, const BValue& value);

	void slotRatioEditFinished(BObject* object, const BValue& value);

private:
	BGearRestraint*			_gearRestraint;

	BGroupBox*				_bodyAGroupBox;
	BLineEdit*				_positionAEdit;
	BLineEdit*				_rotateAEdit;
	BGroupBox*				_bodyBGroupBox;
	BLineEdit*				_positionBEdit;
	BLineEdit*				_rotateBEdit;

	BRealSpinBox*			_ratioSpinBox;

};

#endif
